import request from "../utils/request";

/**
 * 公共get请求函数
 */
const get = (api, params) => {
    return request({
        url: api,
        method: 'get',
        params: params
    });
};

/**
 * 公共post请求函数
 */
const post = (api, form) => {
    return request({
        url: api,
        method: 'post',
        data: form
    })
}


export {
    get,
    post,
}